#include "Log.hpp"
#include "ThreadPool.hpp"
#include "Task.hpp"
#include <iostream>
#include <memory>

using namespace ThreadPool_Module;

int main(){
	Enable_Console();

	int cnt = 10;
	while(cnt--){
		ThreadPool<task_t>::GetInstance()->Enqueue(Download);
	}

	sleep(10);

	ThreadPool<task_t>::GetInstance()->Stop();

	ThreadPool<task_t>::GetInstance()->Wait();

	return 0;
}